import request from '@/utils/request'

// 查询保养通知列表
export function listFwMaintenanceNotification(query) {
  return request({
    url: '/device/fwMaintenanceNotification/list',
    method: 'get',
    params: query
  })
}

// 查询保养通知详细
export function getFwMaintenanceNotification(id) {
  return request({
    url: '/device/fwMaintenanceNotification/' + id,
    method: 'get'
  })
}

// 新增保养通知
export function addFwMaintenanceNotification(data) {
  return request({
    url: '/device/fwMaintenanceNotification',
    method: 'post',
    data: data
  })
}

// 修改保养通知
export function updateFwMaintenanceNotification(data) {
  return request({
    url: '/device/fwMaintenanceNotification',
    method: 'put',
    data: data
  })
}

// 删除保养通知
export function delFwMaintenanceNotification(id) {
  return request({
    url: '/device/fwMaintenanceNotification/' + id,
    method: 'delete'
  })
}
